<form name="userregister"  enctype="multipart/form-data" method="post" action="index.php">
<fieldset>
<legend class="news_title"><?echo($GLOBALS['lang']['users']['profile']);?></legend>

<input type="hidden" name="function" value="{function}" />
<input type="hidden" name="user_id" value="{user_id}" />
<input type="hidden" name="anti_auto_fill" value="{anti_auto_fill}" />
<input type="hidden" name="admin" value="{admin}" />
<input type="hidden" name="module" value="users" />

<table align="center" cellpadding="0" border="0" width="100%" class="tabelka2">
<tr>
    <td class="row_1" align="center" width="25%"><?echo($GLOBALS['lang']['users']['login']);?></td>
    <td class="row_1"><input type="text" name="login{anti_auto_fill}" class="button" value="{u_login}" />
	<br /><small><?echo($GLOBALS['lang']['users']['hint_user_1']);?></small></td>
</tr>
<tr>
    <td class="row_2" align="center"><?echo($GLOBALS['lang']['users']['password']);?></td>
	<td class="row_2"><input type="password" name="passwd{anti_auto_fill}" class="button" />
	<br /><small><?echo($GLOBALS['lang']['users']['hint_user_5']);?></small></td>
</tr>
<tr>
    <td class="row_1" align="center"><?echo($GLOBALS['lang']['users']['confirm']);?></td>
    <td class="row_1"><input type="password" name="passwd2{anti_auto_fill}" class="button" />
	<br /><small><?echo($GLOBALS['lang']['users']['hint_user_4']);?></small></td>
</tr>
<tr>
    <td class="row_2" align="center"><?echo($GLOBALS['lang']['users']['mail']);?></td>
	<td class="row_2"><input type="text" name="mail" size="25" value="{u_mail}" class="button" /></td>
</tr>
<?if($_GET['module']=='admin' && perms_check('users', 'change_group')) {?>
<tr>
  <td class="row_1" align="center"><?echo($GLOBALS['lang']['users']['group']);?></td>
  <td class="row_1"><select name="group" class="button">{group_options}</select></td>
</tr>
<?}?>
<?if($_GET['module']=='admin' && perms_check('users', 'edit')) {?>
<TR>
    <TD class="row_2" align="center"><?echo($GLOBALS['lang']['users']['user_active']);?></TD>
    <TD class="row_2"><input name="active" type="checkbox" value="true" {u_active}> <small><?echo($GLOBALS['lang']['users']['user_active_desc']);?></small></TD>
</TR>
<?}?>
<tr>
    <td></td>
    <td><input name="send" type="submit" id="send" value="<?echo($GLOBALS['lang']['global']['edit']);?>" class="button" /></td>
</tr>
</table>
</fieldset>

<br /><fieldset>
<legend class="news_title"><?echo($GLOBALS['lang']['users']['additional_info']);?></legend>
<table align="center" cellpadding="0" border="0" width="100%" class="tabelka2">
<tr>
    <td class="row_2" align="center" width="25%"><?echo($GLOBALS['lang']['users']['name']);?></td>
    <td class="row_2"><input type="text" name="name" value="{u_name}" class="button" /></td>
</tr>
<tr>
    <td class="row_1" align="center"><?echo($GLOBALS['lang']['users']['surname']);?></td>
    <td class="row_1"><input type="text" name="surname" value="{u_surname}" class="button" /></td>
</tr>
<tr>
    <td class="row_2" align="center"><?echo($GLOBALS['lang']['users']['icq']);?></td>
    <td class="row_2"><input type="text" name="icq" value="{u_icq}" class="button" /></td>
</tr>
<tr>
    <td class="row_1" align="center"><?echo($GLOBALS['lang']['users']['o2']);?></td>
    <td class="row_1"><input type="text" name="o2" value="{u_o2}" class="button" /></td>
</tr>
<tr>
    <td class="row_2" align="center"><?echo($GLOBALS['lang']['users']['gg']);?></td>
    <td class="row_2"><input type="text" name="gg" value="{u_gg}" class="button" /></td>
</tr>
<tr>
    <td class="row_1" align="center"><?echo($GLOBALS['lang']['users']['location']);?></td>
    <td class="row_1"><input type="text" name="location" value="{u_location}" class="button" /></td>
</tr>
<tr>
    <td class="row_2" align="center"><?echo($GLOBALS['lang']['users']['www']);?></td>
    <td class="row_2"><input type="text" name="website" value="{u_website}" class="button" /></td>
</tr>
<tr>
    <td class="row_1" align="center" width="25%"><?echo($GLOBALS['lang']['users']['theme']);?></td>
    <td class="row_1"><select name="thm" class="button">{theme_options}</select></td>
</tr>
<tr>
    <td class="row_2" align="center"><?echo($GLOBALS['lang']['users']['language']);?></td>
    <td class="row_2"><select name="lng" class="button">{language_options}</select></td>
</tr>
<tr>
     <td class="row_1" align="center"><?echo($GLOBALS['lang']['users']['avatar']);?></td>
     <td class="row_1" align="left">

<table align="center" valign="top" width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
     <td class="row_1" colspan="2">{avatar_description}</td>
</tr>
<tr>
     <td class="row_1" align="left"><input type="radio" name="how_image" class="radio" value="no_change" checked /><?echo($GLOBALS['lang']['global']['without_changes']);?></td>
     <td class="row_1" align="left">{image}</td>
</tr>
<tr>
     <td class="row_1" align="left"><input type="radio" name="how_image" class="radio" value="form" /><?echo($GLOBALS['lang']['global']['disk']);?></td>
     <td class="row_1" align="left" width="230"><input type="file" name="image_form" class="button" /></td>
</tr>
<tr>
     <td class="row_1" align="left"><input type="radio" name="how_image" class="radio" value="http"><?echo($GLOBALS['lang']['global']['url']);?></td>
     <td class="row_1" align="left"><input type="text" name="image_http" value="http://" class="button" /></td>
</tr>
<tr>
     <td class="row_1" align="left" colspan="2"><input type="radio" name="how_image" class="radio" value="none" /><?echo($GLOBALS['lang']['global']['none']);?></td>
</tr>
</table>

	 </td>
</tr>
<tr>
    <td class="row_2" align="center"><?echo($GLOBALS['lang']['users']['signature']);?> <a href="javascript:void();" onclick="javascript:open_popup('help.php?dom_id=signature&amp;module=article&amp;id={id}', screenWH('W'), screenWH('H'));"><img src="admin/gfx/help.png" alt="" /></a></td>
    <td class="row_2"><textarea id="signature" name="signature" cols="30" rows="5" class="button">{u_signature}</textarea></td>
</tr>
<tr>
    <td class="row_1" align="center"><?echo($GLOBALS['lang']['users']['mailing']);?></td>
    <td class="row_1"><input name="mailing" type="checkbox" value="true"{u_mailing}><small><?echo($GLOBALS['lang']['users']['hint_user_6']);?></small></td>
</tr>
<tr>
    <td></td>
    <td><input name="send" type="submit" id="send" value="<?echo($GLOBALS['lang']['global']['edit']);?>" class="button" /></td>
</tr>
</table>
</fieldset>

<?plugins('users/themes/users_form/');?>

</form>

